/*
 * @Author: wangzhichiao<https://github.com/wzc570738205>
 * @Date: 2019-11-18 15:27:18
 * @LastEditors: wangzhichiao<https://github.com/wzc570738205>
 * @LastEditTime: 2021-10-18 09:44:40
 */
/*
 * @Author: wangzhichiao<https://github.com/wzc570738205>
 * @Date: 2019-11-18 15:27:18
 * @LastEditors: wangzhichiao<https://github.com/wzc570738205>
 * @LastEditTime: 2020-11-26 18:52:31
 */
module.exports = {
  title: "常用知识整理", // 显示在左上角的网页名称以及首页在浏览器标签显示的title名称
  description: "王志超的工具库", // meta 中的描述文字，用于SEO
  // 注入到当前页面的 HTML <head> 中的标签
  head: [
    ["link", { rel: "icon", href: "/logo.png" }], //浏览器的标签栏的网页图标
  ],
  base: "./",
  markdown: {
    lineNumbers: false,
    toc: { includeLevel: [1, 2, 3, 4] },
    extractHeaders: ["h1", "h2", "h3", "h4"],
  },
  themeConfig: {
    sidebarDepth: 2,
    logo: "/logo.png",
    lastUpdated: "lastUpdate", // string | boolean
    nav: [
      { text: "首页", link: "/" },
      { text: "segmentfault", link: "https://segmentfault.com/u/wangzc996" },
      { text: "github", link: "https://github.com/wzc570738205" },
      { text: "源码", link: "https://github.com/wzc570738205/tools" },
    ],
    sidebar: {
      "/pages/": [
        {
          title: "关于我", // 必要的
          collapsable: true, // 可选的, 默认值是 true,
          sidebarDepth: 0, // 可选的, 默认值是 1
          path: "/pages/aboutme.md",
        },
        {
          title: "css",
          sidebarDepth: 1,
          children: [
            ["/pages/css/disableaLink.md", "禁用a标签在自己网站的显示方法"],
            ["/pages/css/gridBackground.md", "用css实现背景线网格"],
            ["/pages/css/disableHover.md", "如何禁用css hover"],
            ["/pages/css/textHidden.md", "html单行、多行文本溢出隐藏"],
            ["/pages/css/border.md", "实现一个带脚边的边框"],
            ["/pages/css/gradientprogressbar.md", "css渐变进度条"],
            ["/pages/css/trapezoid.md", "css实现梯形分割"],
            ["/pages/css/svgtext.md", "css实现炫酷字体"],
            ["/pages/css/cSScrollSnap.md", "scroll-snap-type"],
            ["/pages/css/filter.md", "css filter"],
          ],
        },
        {
          title: "js",
          sidebarDepth: 1,
          children: [
            ["/pages/javascript/regexp-comment.md", "过滤掉字符串html里的注释"],
            ["/pages/javascript/pdf.md", "预览以及下载pdf文件"],
            ["/pages/javascript/upload-download.md", "常用文件下载上传方法"],
            ["/pages/javascript/customInputFile.md", "自定义input:file样式"],
            ["/pages/javascript/regx.md", "正则验证"],
            
          ],
        },
        {
          title: "vue",
          sidebarDepth: 1,
          children: [
            ["/pages/vue/removelog.md", "打包去除生产环境console.log"],
            ["/pages/vue/gzip.md", "vue打包开启gzip"],
          ],
        },
        {
          title: "plugs",
          sidebarDepth: 1,
          children: [
            ["/pages/plugs/vue-draggable-resizable.md", "VueDraggableResizable"],
            ["/pages/plugs/vue-drag-drop.md", "VueDragDrop"],
            ["/pages/plugs/VueDraggable.md", "VueDraggable"],
            ["/pages/plugs/math.js.md", "math.js"],
            ["/pages/plugs/dayjs_momentjs.md", "dayjs_momentjs.js"],
          ],
        },
        {
          title: "thress.js",
          sidebarDepth: 1,
          children: [
            ["/pages/thress/earch.md", "实现一个图片覆盖的球体"],
            ["/pages/thress/photosphere.md", "实现全景图片360°预览"],
          ],
        },
        {
          title: "mysql",
          sidebarDepth: 1,
          children: [
            ["/pages/mysql/restart-err.md", "mysql启动失败"],
          ],
        },
        {
          title: "jenkins",
          sidebarDepth: 2,
          children: [
            ["/pages/jenkins/installJdk.md", "在linux服务器上安装jdk"],
            ["/pages/jenkins/install.md", "在linux服务器上安装Jenkins"],
            ["/pages/jenkins/sendEmail.md", "jenkins构建成功后邮件发送文件"],
            ["/pages/jenkins/buildGit.md", "使用jenkins自动构建github项目"],
            ["/pages/jenkins/svnDing.md", "svn实现钉钉代码提交通知"],
            ["/pages/jenkins/cicd.md", "[Jenkins进阶]-前端CI/CD"],
          ],
        },
        {
          title: "nginx",
          sidebarDepth: 1,
          children: [
            ["/pages/nginx/install.md", "如何在Centos 7上安装和管理Nginx"],
            ["/pages/nginx/expires.md", "nginx缓存的开启和禁用"],
            ["/pages/nginx/gzip.md", "nginx开启gzip"],
            ["/pages/nginx/nginx-websocket.md", "nginx反向代理WebSocket"],
            ["/pages/nginx/nginx-proxy.md", "nginx反向代理"],
            ["/pages/nginx/rewrite-nginx.md", "误删nginx.conf文件如何恢复"],
          ],
        },
        {
          title: "git",
          sidebarDepth: 1,
          children: [["/pages/git/git443.md", "git克隆出现443"],
          ["/pages/git/gitConsole.md", "Git常用命令清单"]],
        },
        {
          title: "linux",
          sidebarDepth: 1,
          children: [["/pages/linux/closefirewalld.md", "CentOS7关闭防火墙"],
          ["/pages/linux/sh.md", "linux常用命令"],
          ["/pages/linux/docker-log.md", "docker清空日志"],
          ["/pages/linux/vmware-ip.md", "vmware配置虚拟机ip"]
          ],
        },
        {
          title: "工具网站",
          sidebarDepth: 1,
          path: "/pages/tools/tools.md",
        },
      ],
    },
  },
  plugins: [['vuepress-plugin-code-copy', {
    backgroundTransition:false,
    successText: '复制成功'
    }]]
};
